﻿using System.Collections.ObjectModel;

namespace Labthink.PCSoft.UniversalHost4.UserControls
{
    public class SampleTree
    {
        public ObservableCollection<TreeNodeModel> ItemsSourceData { get; set; } = new ObservableCollection<TreeNodeModel>();

        public SampleTree()
        {
            ItemsSourceData.Add(
                new TreeNodeModel
                {
                    Id = "1",
                    Name = "a",
                    IsExpanded = true,
                    IsChecked = null,
                    Children = new ObservableCollection<TreeNodeModel>()
                    {
                        new TreeNodeModel
                        {
                            Id = "12",
                            Name = "ab",
                            IsChecked = true,
                        },
                        new TreeNodeModel
                        {
                            Id = "13",
                            Name = "ac",
                        }
                    }
                });
        }
    }
}
